package org.stayfool.client.util.future;

import io.netty.handler.codec.mqtt.MqttSubAckMessage;
import org.stayfool.client.event.OneTimeEventCallBack;

/**
 * Created by stayfool on 2017/2/24.
 */
public class SubscribeFuture extends AbstractFuture<MqttSubAckMessage>
        implements Future<MqttSubAckMessage>, OneTimeEventCallBack<MqttSubAckMessage> {

    @Override
    public void callback(MqttSubAckMessage msg) {
        setDone(msg);
    }
}
